import { get, post } from '../utils/request'

export const mrcdetail = (id) =>
  get('/cloud-merchant/mrc/mrcinfo/detail?id=' + id)
export const storedetail = (id) =>
  get('/cloud-merchant/mrc/store/detail?id=' + id)
export const mrctype = (tpye) =>
  get('/cloud-system/dict-biz/dictionary?code=' + tpye)
export const Bankdetail = (id) => get('/cloud-system/bank-type/detail/' + id)
export const Branchdetail = (id) => get('/cloud-system/bank-info/detail/' + id)
export const areadetail = (id) =>
  get('/cloud-system/register-region/detail/' + id)
export const mccdetail = (code) => get('/cloud-system/mcc/detail?code=' + code)
export const getWxAccountByDeptId = (row) =>
  get('/cloud-system/wxPublicAccounts/getWxAccountByDeptId', {
    ...row,
  })
export const getManualTxState = () =>
  get('/cloud-merchant/mrc/merchTxOperate/getManualTxState')

export const applyOpen = () =>
  get('/cloud-merchant/mrc/merchTxOperate/applyOpen')

export const timeOutReq = () =>
    get('/cloud-merchant/mrc/merchTxOperate/timeOutReq')

export const getMerchChannelwalletInfo = () =>
    get('/cloud-merchant/mrc/merchTxOperate/getMerchChannelwalletInfo')

export const txSwitch = (type) =>
    get('/cloud-merchant/mrc/merchTxOperate/txSwitch?type='+type)

export const getTxState = () =>
  get('/cloud-merchant/mrc/merchTxOperate/getTxState')

// 判断是否userId
export const isUserId = (id) =>
  get('/cloud-merchant/mrc/merchTxOperate/isUserId?userId=' + id)